food_dict = {
    "小米粥": 45,
    "粗粮馒头": 223,
    "全麦面包": 235,
    "瘦猪肉": 143,
    "鸡翅": 194,
    "培根": 181,
    "火腿肠": 212
}
# for food in food_dict:
#     print(f"我吃了二两{food}, 增加了{food_dict.get(food)}卡路里")
while True:
    food_name = input("你想知道哪种食物的卡路里: ")
    calorie = food_dict.get(food_name)
    if calorie is None:
        print("没有该食物的数据")
    else:
        print(f"{calorie}")
